<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'reg.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script language="javascript">
	  function keyLogin(){
	      if(event.keyCode==13)
	         document.getElementByName("Submit").click();
	  }
	  </script>
	  

	  
	  <script language=”javascript“>
	  function check(){
	  //var goodname=document.all.goodname.value;//获取商品名所填的内容
	  //var price= document.all.price.value;//获取商品价格
	  //var area= document.all.area.value;//获取商品产地
     
         
     }
	   </script>
	   

  </head>
  
  <body  onkeydown="keyLogin();">
   <div align=center><font size="4"><strong>商品添加<br> </strong></font></div>
    <br>          
          <form name="form1" onsubmit="return check()" method="post" action="register_result.jsp">
          <table width="400" border="0" cellspacing="1" cellpadding="1" align="center">
          <br>
            <tr> 
              <td align="right">商品名：</td>
              <td> 
                <input type="text" name="googname" size="15" maxlength="25">
              </td>
            </tr>
            <tr> 
              <td align="right">价&nbsp; 格：</td>
              <td> 
                <input type="text" name="price" size="15" maxlength="20">
              </td>
            </tr>
            <div id="chkResult"></div>
            <tr> 
              <td align="right">产地：</td>
              <td> 
                <input type="text" name="area" size="15" maxlength="20">
              </td>
            </tr>
            <tr> 
              <td colspan="2" align="center"> 
                <input type="submit" name="Submit" value="确定">
                <a>&nbsp; &nbsp;</a>
                <input type="reset" name="Submit2" value="重置">
              </td>
            </tr>
            </table>
            </form>
 
  </body>
</html>

